using System.Collections.Generic;

namespace Engine.FileFormats3D.WR2TrafficFiles
{
    public class CrossingBlock
    {
        #region Public Fields

        public List<int> splineIDs;

        #endregion Public Fields

        #region Private Fields

        private static int id = 0;
        private int localID;

        #endregion Private Fields

        #region Public Constructors

        public CrossingBlock(int id)
        {
            localID = id;
            splineIDs = new List<int>();
        }

        #endregion Public Constructors

        #region Public Properties

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        #endregion Public Properties

        #region Public Methods

        public void AddSplineID(int ID)
        {
            if (this.splineIDs.Contains(ID))
                return;
            splineIDs.Add(ID);
            splineIDs.Sort();
        }

        #endregion Public Methods
    }
}